package com.mindether.llyblog.pojo;


import java.io.Serializable;
import java.util.Date;

public class Article implements Serializable {
    private String id;
    private String userid;
    private String tag;
    private String title;
    private String intro;
    private String content;
    private String image;
    private String createtime;
    private String updatetime;
    char istop;
    private Integer visits;
    private Integer thumbup;
    private Integer comment;
    char state;

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Article(String id, String userid, String tag, String title, String intro, String content, String image, String createtime, String updatetime, char istop, Integer visits, Integer thumbup, Integer comment, char state) {
        this.id = id;
        this.userid = userid;
        this.tag = tag;
        this.title = title;
        this.intro = intro;
        this.content = content;
        this.image = image;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.istop = istop;
        this.visits = visits;
        this.thumbup = thumbup;
        this.comment = comment;
        this.state = state;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Article() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public char getIstop() {
        return istop;
    }

    public void setIstop(char istop) {
        this.istop = istop;
    }

    public Integer getVisits() {
        return visits;
    }

    public void setVisits(Integer visits) {
        this.visits = visits;
    }

    public Integer getThumbup() {
        return thumbup;
    }

    public void setThumbup(Integer thumbup) {
        this.thumbup = thumbup;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public char getState() {
        return state;
    }

    public void setState(char state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Article article = (Article) o;

        return id != null ? id.equals(article.id) : article.id == null;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }
}
